package cn.zjutleo.village_server.service.converter;

import cn.zjutleo.village_server.dto.AccurateSupportSurveyDto;
import cn.zjutleo.village_server.entity.AccurateSupportSurvey;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/10/3
 * @description: 精准帮扶走访实体转化类
 */
@Mapper
public interface AccurateSupportSurveyConverter {

    AccurateSupportSurveyConverter INSTANCES = Mappers.getMapper(AccurateSupportSurveyConverter.class);

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "time", ignore = true)
    AccurateSupportSurvey dtoToEntity(AccurateSupportSurveyDto accurateSupportSurveyDto);
}
